Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list xpaths from virtual index #60

Merged
merged 3 commits into from
Oct 31, 2024
Merged

Conversation

diPhantxm
Copy link
Contributor

No description provided.

@diPhantxm diPhantxm force-pushed the list-xpaths-from-virt-index branch from bedda24 to 9fc9de1 Compare October 30, 2024 19:37
@diPhantxm
Copy link
Contributor Author

testreg=# CREATE TABLE regaoty(i INT) WITH (appendonly=true);
NOTICE:  Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'i' as the Greenplum Database data distribution key for this table.
HINT:  The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
CREATE TABLE
testreg=# INSERT INTO regaoty SELECT * FROM generate_series(1, 100000);
INSERT 0 100000
testreg=# SELECT * FROM yezzey_define_offload_policy('regaoty');
NOTICE:  yezzey: relation virtual size calculated: 0  (seg0 slice1 127.0.1.1:6002 pid=3387006)
NOTICE:  yezzey: relation virtual size calculated: 0  (seg1 slice1 127.0.1.1:6003 pid=3387008)
NOTICE:  yezzey: relation virtual size calculated: 0  (seg2 slice1 127.0.1.1:6004 pid=3387007)
INFO:  yezzey: relation segment reached external storage (blkno=1), up to logical eof 332656  (seg2 slice1 127.0.1.1:6004 pid=3387007)
INFO:  yezzey: relation segment reached external storage (blkno=1), up to logical eof 333816  (seg1 slice1 127.0.1.1:6003 pid=3387008)
INFO:  yezzey: relation segment reached external storage (blkno=1), up to logical eof 335168  (seg0 slice1 127.0.1.1:6002 pid=3387006)
 yezzey_define_offload_policy 
------------------------------
 
(1 row)

testreg=# SELECT * FROM yezzey_relation_describe_external_storage_structure('regaoty');
 offload_reloid | segindex | segfileindex |                                             external_storage_filepath                                             | local_b
ytes | local_commited_bytes | external_bytes 
----------------+----------+--------------+-------------------------------------------------------------------------------------------------------------------+--------
-----+----------------------+----------------
          16436 |        1 |            1 | segments_005/seg1/basebackups_005/yezzey/1663_16384_cc4d049f7c33629b9daf977c154ae465_16385_1__DY_1_xlog_202399496 |        
   0 |                    0 |         333816
          16436 |        0 |            1 | segments_005/seg0/basebackups_005/yezzey/1663_16384_cc4d049f7c33629b9daf977c154ae465_16385_1__DY_1_xlog_202400928 |        
   0 |                    0 |         335168
          16436 |        2 |            1 | segments_005/seg2/basebackups_005/yezzey/1663_16384_cc4d049f7c33629b9daf977c154ae465_16385_1__DY_1_xlog_202398256 |        
   0 |                    0 |         332656
(3 rows)

testreg=# begin;
BEGIN
testreg=# INSERT INTO regaoty SELECT * FROM generate_series(1, 100000);
INSERT 0 100000
testreg=# rollback;
ROLLBACK
testreg=# SELECT * FROM yezzey_relation_describe_external_storage_structure('regaoty');
 offload_reloid | segindex | segfileindex |                                             external_storage_filepath                                             | local_b
ytes | local_commited_bytes | external_bytes 
----------------+----------+--------------+-------------------------------------------------------------------------------------------------------------------+--------
-----+----------------------+----------------
          16436 |        0 |            1 | segments_005/seg0/basebackups_005/yezzey/1663_16384_cc4d049f7c33629b9daf977c154ae465_16385_1__DY_1_xlog_202400928 |        
   0 |                    0 |         335168
          16436 |        0 |            1 | segments_005/seg0/basebackups_005/yezzey/1663_16384_cc4d049f7c33629b9daf977c154ae465_16385_1__DY_2_xlog_202429000 |        
   0 |                    0 |         335168
          16436 |        1 |            1 | segments_005/seg1/basebackups_005/yezzey/1663_16384_cc4d049f7c33629b9daf977c154ae465_16385_1__DY_1_xlog_202399496 |        
   0 |                    0 |         333816
          16436 |        1 |            1 | segments_005/seg1/basebackups_005/yezzey/1663_16384_cc4d049f7c33629b9daf977c154ae465_16385_1__DY_2_xlog_202427568 |        
   0 |                    0 |         333816
          16436 |        2 |            1 | segments_005/seg2/basebackups_005/yezzey/1663_16384_cc4d049f7c33629b9daf977c154ae465_16385_1__DY_1_xlog_202398256 |        
   0 |                    0 |         332656
          16436 |        2 |            1 | segments_005/seg2/basebackups_005/yezzey/1663_16384_cc4d049f7c33629b9daf977c154ae465_16385_1__DY_2_xlog_202426328 |        
   0 |                    0 |         332656
(6 rows)

@reshke reshke merged commit 2ee34f1 into v1.8_opengpdb Oct 31, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants